<?php 
$this->breadcrumbs()->addPage('Abrir Processo', 'abrirprocesso');
$this->breadcrumbs()->addPage('Formulário', 'abrirprocesso', 'formulario');
echo $this->breadcrumbs()->render(); 

echo $this->pagenav()->openList(); 
echo $this->pagenav()->defaultHelperLinks();
echo $this->pagenav()->closeList();
?>

<div id="article">
    <h4>2. Preencha o formulário do Tipo de Processo</h4>
    <form action="" method="post" id="formularioProcesso">
        <?php 
        echo $this->fieldList()->open();
        echo $this->fieldList()->text('Tipo de Processo', $this->tipoProcesso->nome);
        if ($this->tipoProcesso->id) {
            echo $this->fieldList()->select('Assunto', 'assunto', $this->listaAssuntos, null, array('required' => true));
        }
        echo $this->fieldList()->close();
        
        if ($this->tipoProcesso->id) {
            echo $this->render('snippets/formularioProcesso.phtml');
        }
        
        echo $this->buttonlist()->open();
        echo $this->buttonlist()->button('Avançar');
        echo $this->buttonlist()->close(true); 
        ?>
    </form>
</div>
<?php
$js = '$(document).ready(function() {
            jQuery("#assunto").chosen();
        });';
$this->headScript()->appendScript($js, 'text/javascript');
?>
